package com.ws.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@TableName("shop_admin")
@Data
public class User {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String username;

    private String password;

    @TableField(exist = false)
    private String oldPassword;

    @TableField(exist = false)
    private String password1;

    private Integer roleId;

    @TableField(exist = false)
    private String roleName;

    private Integer deptId;

    @TableField(exist = false)
    private String deptName;

    private String nickname;

    private Integer freeze;

    private String face;

    private String email;

    private String phone;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date insertTime;

    private Integer sex;

    private Integer type;


}
